<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* @keyframes anim {
            0%{
                transform: rotate(0deg);
            }
            30%{
                transform: rotate(3600deg);
            }
            60%{
                 transform: rotate(360deg); 
                width: 200px;
                height: 200px;
                background-color:yellow;
            }
            100%{
                transform: rotate(360deg);
            }
            
        } */
        @keyframes anim {
            from{
                transform: rotate(0deg);
            }
            to{
                transform: rotate(360deg);
            }
            
        }
        .box{
            width: 100px;
            height: 100px;
            background-color:red;
            margin: 100px auto;
            animation: anim 2s linear 2s 1;
        }
    </style>
</head>
<body>
    <div class="box">

    </div>
    
</body>
</html>